package cn.zymall.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper=true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "")
public class SpuImg extends BaseEntity implements Serializable {
    /**
     * 商品相册编号
     */
    @TableId(value = "SPU_IMG_ID", type = IdType.AUTO)
    private Integer spuImgId;

    /**
     * 图片地址
     */
    @TableField(value = "IMG")
    private String img;

    /**
     * 是否是主图（0不是，1是）
     */
    @TableField(value = "IMG_TRUE")
    private String imgTrue;

    /**
     * 商品编号
     */
    @TableField(value = "SPU_ID")
    private String spuId;



    private static final long serialVersionUID = 1L;

    public static final String COL_SPU_IMG_ID = "SPU_IMG_ID";

    public static final String COL_IMG = "IMG";

    public static final String COL_IMG_TRUE = "IMG_TRUE";

    public static final String COL_SPU_ID = "SPU_ID";

}
